package com.yuhanginfo.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 物料管理Entity
 * @author yangs
 * @version 2017-09-28
 */
public class Parts extends DataEntity<Parts> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 配件号
	private String cnName;		// 配件中文名
	private String enName;		// 配件英文名
	private String carBarandCode;		// 车辆品牌类型
	private String carType;
	private String brandName;
	private String createYear;
	private String venderName;
	private String partsCode;
	private String goodsPrice;
	private String memberPrice;
	private String image;
	
	public Parts() {
		super();
	}

	public Parts(String id){
		super(id);
	}
	
	public String getMemberPrice() {
		return memberPrice;
	}

	public void setMemberPrice(String memberPrice) {
		this.memberPrice = memberPrice;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(String goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	public String getVenderName() {
		return venderName;
	}

	public void setVenderName(String venderName) {
		this.venderName = venderName;
	}

	public String getPartsCode() {
		return partsCode;
	}

	public void setPartsCode(String partsCode) {
		this.partsCode = partsCode;
	}

	public String getCarType() {
		return carType;
	}

	public void setCarType(String carType) {
		this.carType = carType;
	}

	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	public String getCreateYear() {
		return createYear;
	}

	public void setCreateYear(String createYear) {
		this.createYear = createYear;
	}



	@Length(min=1, max=30, message="配件号长度必须介于 1 和 30 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=50, message="配件中文名长度必须介于 0 和 50 之间")
	public String getCnName() {
		return cnName;
	}

	public void setCnName(String cnName) {
		this.cnName = cnName;
	}
	
	@Length(min=0, max=50, message="配件英文名长度必须介于 0 和 50 之间")
	public String getEnName() {
		return enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}
	
	@Length(min=0, max=11, message="车辆品牌类型长度必须介于 0 和 11 之间")
	public String getCarBarandCode() {
		return carBarandCode;
	}

	public void setCarBarandCode(String carBarandCode) {
		this.carBarandCode = carBarandCode;
	}
	
}